﻿{% extends 'wap/base.html' %}
{% load humanize %}

{% block title %}最新文章 {% endblock %}
{% block content %}

{% for archive in archives.object_list %}
<div class='archive'>
    <a href='/wap{{archive.get_absolute_url}}'>{{archive.title}}</a>
    <div class='info'>
        分类:<a href='/wap{{archive.category.get_absolute_url}}'>{{archive.category.name}}</a>
        <br/>
        {{archive.pub_date|naturalday}} {{archive.pub_date|date:"H:i"}}
        <br/>
        浏览:{{archive.view_nums}} 评论:{{archive.comments.count}}
    </div>
</div>
{% endfor %}
{% if archives.has_previous%}
<a href='/wap/archives?page={{archives.previous_page_number}}'>上一页</a>
{% endif %}
{% if archives.has_next %}
<a href='/wap/archives?page={{archives.next_page_number}}'>下一页</a>
{% endif %}

{% endblock %}
